package com.software.graduationproject.modules.food.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.software.graduationproject.commons.select.Select;
import com.software.graduationproject.modules.food.entity.Food;
import com.software.graduationproject.modules.food.object.FoodCommentVo;
import com.software.graduationproject.modules.food.object.FoodVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.metadata.Page;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * FoodMapper
 * ---------------------------------------------------------------------------------------------------------------------
 */
@Mapper
public interface FoodMapper extends BaseMapper<Food> {

    Page<FoodVo> selectPageVo(@Param("select") Select select);

    List<FoodVo> selectListVo(@Param("select") Select select);

    List<FoodVo> searchAllBySelect(@Param("select") Select select);

    FoodVo selectDetail(Long id);

    FoodCommentVo selectFoodComment(Long id);
}
